package cn.wolfcode.wolf2w.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@Document("userInfo")
@ToString
@ApiModel(value="用户",description="平台注册用户模型")
public class UserInfo extends BaseDomain{
	public static final int GENDER_SECRET = 0; //保密
	public static final int GENDER_MALE = 1;   //男
	public static final int GENDER_FEMALE = 2;  //女
	public static final int STATE_NORMAL = 0;  //正常
	public static final int STATE_DISABLE = 1;  //冻结

	@ApiModelProperty(value="昵称",name="nickName",dataType = "String",required = true)
	private String nickname;  //昵称
	private String phone;  //手机
	private String email;  //邮箱
	private String password; //密码
	private int gender = GENDER_SECRET; //性别
	private int level = 0;  //用户级别
	private String city;  //所在城市
	private String headImgUrl; //头像
	private String info;  //个性签名
	private List<String> strategiesFavor = new ArrayList<>();	// 攻略收藏列表
	private List<String> travelFavor = new ArrayList<>();		// 记录收藏列表
	private int state = STATE_NORMAL; //状态

}